package pojo;

/**
 * @author konley
 * @date 2020-06-09 11:57
 * 账单类 存放账单
 */
public class Bill {
    private int bid;    //单号
    private int cid;    //卡号
    private String type;    //账单类型
    private int money;     //金额
    private String address; //地点
    private String time;    //日期

    //全参构造方法
    public Bill(int bid, int cid, String type, int money, String address, String time) {
        this.bid = bid;
        this.cid = cid;
        this.type = type;
        this.money = money;
        this.address = address;
        this.time = time;
    }

    //无参构造方法
    public Bill() {
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "bid=" + bid +
                ", cid=" + cid +
                ", type='" + type + '\'' +
                ", money=" + money +
                ", address='" + address + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
